package com.p6spy.enginex.logging;

import java.sql.*;

import com.p6spy.enginex.spy.*;

public class P6LogFactory implements P6Factory {

	public P6LogFactory() {
	}

	public Connection getConnection(Connection conn) throws SQLException {
		return new P6LogConnection(this, conn);
	}

	public PreparedStatement getPreparedStatement(PreparedStatement real,
			P6Connection conn, String p0) throws SQLException {
		return new P6LogPreparedStatement(this, real, conn, p0);
	}

	public Statement getStatement(Statement statement, P6Connection conn)
			throws SQLException {
		return new P6LogStatement(this, statement, conn);
	}

	public CallableStatement getCallableStatement(CallableStatement real,
			P6Connection conn, String p0) throws SQLException {
		return new P6LogCallableStatement(this, real, conn, p0);
	}

	public ResultSet getResultSet(ResultSet real, P6Statement statement,
			String preparedQuery, String query) throws SQLException {
//		return new P6LogResultSet(this, real, statement, preparedQuery, query);
		return real;
	}

	public DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real,
			P6Connection conn) throws SQLException {
//		return new P6DatabaseMetaData(this, real, conn);
		return real;
	}

	public Array getArray(Array real, P6Statement statement,
			String preparedQuery, String query) throws SQLException {
//		return new P6Array(this, real, statement, preparedQuery, query);
		return real;
	}

	public ResultSetMetaData getResultSetMetaData(ResultSetMetaData real)
			throws SQLException {
//		return new P6ResultSetMetaData(this, real);
		return real;
	}

}
